package 框架.security登录JWT加密_初级版;

import cn.tedu.csmall.commons.pojo.vo.PageData;
import cn.tedu.csmall.passport.pojo.param.AdminAddNewParam;
import cn.tedu.csmall.passport.pojo.param.AdminLoginInfoParam;
import cn.tedu.csmall.passport.pojo.param.AdminUpdateParam;
import cn.tedu.csmall.passport.pojo.vo.AdminListItemVO;
import cn.tedu.csmall.passport.pojo.vo.AdminStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IAdminService {

    String login(AdminLoginInfoParam adminLoginInfoParam);

    void addNew(AdminAddNewParam adminAddNewParam);

    void deleteById(Long id);

    void updateInfoById(Long id, AdminUpdateParam adminUpdateParam);

    void updatePwdById(Long id, String password);

    AdminStandardVO getStandardById(Long id);

    PageData<AdminListItemVO> list(Integer pageNum);

    PageData<AdminListItemVO> list(Integer pageNum, Integer pageSize);
}
